﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Spring.Data.Objects;
using Spring.Data.Common;
using System.Collections;

namespace Cn.Edwon.Spring {
    public class CommonStoredProc:StoredProcedure {
        public CommonStoredProc(IDbProvider dbProvider, String procedureName)
            : base(dbProvider,procedureName)
        {           
            DeriveParameters(true);
            Compile();
        }

        public new IDictionary Query(params Object[] inParams) {
            return base.ExecuteNonQuery(inParams);
        }

        public new IDictionary QueryByNamedParam(IDictionary inParams) {
            return base.ExecuteNonQueryByNamedParam(inParams);
        }

        
        
    }
}
